Skip to content

fix(updater): download Aliyun artifacts first and fall back to GitHub - #1399

Closed
appergb wants to merge 1 commit into
betafrom
fix/updater-aliyun-github-fallback
Closed

appergb wants to merge 1 commit into
betafrom
fix/updater-aliyun-github-fallback

Conversation

@appergb

@appergb appergb commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • 发版时必须把二进制产物上传到阿里云 https://dl.aeoform.com/releases/{tag}/{asset},不能只传滚动 JSON。RELEASING.md 把这一步写完整了。
  • 客户端先探测阿里云上的安装包。能拉到就从阿里云下载,因为这条链路更快。阿里云没有拉到(404、其它非成功响应,或请求失败)时,下载 GitHub 上同一份 {tag}/{asset}。
  • 清单里的 url 仍然写阿里云地址。GitHub 只作为安装包回退,不提供滚动 JSON。签名校验的还是同一份字节。

已有客户端

Beta.3 及更早的安装包没有这段回退。它们要看到新版本,仍然需要阿里云上的滚动 JSON 被覆盖;只上传二进制不会让检查更新从“已是最新”变成可下载。

Test plan

  • cargo test --lib update_source:::阿里云地址映射到 GitHub Release 下载地址,%2B 与字面 + 指向同一文件,多余路径、其它主机和带凭据的 URL 被拒绝;探测成功保留阿里云,失败才换 GitHub。
  • 桌面检查更新在阿里云对象缺失时,插件实际下载的是 GitHub 资产 URL。
  • Android 下载命令在回退之后仍只接受允许的 release 主机。

The release checklist now requires the binary packages on Aliyun. The
client keeps that URL when the object can be fetched, and uses the
matching GitHub Release asset when Aliyun does not serve it.
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-06T14:08:03.002822Z
We couldn’t complete this review. Comment @codex review to try again.
0ca7a28 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@H-Chris233 H-Chris233 added bug Something isn't working P2 Medium priority Android Android-specific macOS macOS-specific Windows Windows-specific labels Nov 21, 2026 — with ChatGPT Codex Connector

Copy link
Copy Markdown
Collaborator

更新包优先从阿里云下载、失败时回退 GitHub 的逻辑已随 #1426 合入 beta。这里关闭。

@H-Chris233 H-Chris233 closed this Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Android Android-specific bug Something isn't working macOS macOS-specific P2 Medium priority Windows Windows-specific

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants